<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div>
    <center>
        <form action="<%= application.getContextPath() %>/sd2.do" method="post">
            <b style="color: red">
                <%
                    String s = "";
                    // Object msg = application.getAttribute("msg");
                    // 从请求域当中获取绑定的数据
                    Object msg = request.getAttribute("msg");
					if (msg != null) {
						s = (String) msg;
                    }
                %>
                <%= s %>
            </b><br>
            用户名：<input type="text" name="uname"><br>
            密码：<input type="password" name="pwd"><br>
            <input type="submit" value="登录">
        </form>
    </center>
</div>
</body>
</html>
